package com.pango.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pango.system.entity.OrganizationEntity;
import com.pango.system.model.Organization;

public interface OrganizationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Organization record);

    int insertSelective(Organization record);

    Organization selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);
    
    List<Organization> selectAll();
    
    
    List<OrganizationEntity> selectOrganizationByParentId(@Param(value="parentId") Long parentId);
    
    List<OrganizationEntity> selectOrganizationNoSelf(Organization organization);
}